xend: allow config file compatibility with new tap syntax
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:00:29 +0000 (11:00 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 16 Jun 2009 10:00:29 +0000 (11:00 +0100)
commit51e4a7555d67734dfca37869195cc8eca7315a47
tree550a6a3b596ee9f15ab7c8607c2e4cad6e900a50
parente966818264908e842e2847f579ca4d94e586eaac
xend: allow config file compatibility with new tap syntax

Recently the format of the tap syntax in the config file changed to
using a 4 part specifier (tap:tapdisk:<format>:<filename>) instead
of the old 3-part one (tap:<qcow>:<filename>).
This breaks compatibility with existing config files: a guest start
will throw a Python exception and will be aborted.
AFAICS currently tap:tapdisk is redundant, so the attached patch
simply catches the above mentioned exception and tries to parse the
old format in this case.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
tools/python/xen/xend/server/BlktapController.py